function resize(){
	// alert($(window).height());
	$('.heroSlider .rsOverflow, .royalSlider.heroSlider').css('height', $(window).height());
}

$(document).ready(function(){
	// resize();
	setTimeout(resize(), 1000);
	setTimeout(resize(), 3000);
});	
$(window).resize(function(){ 
	resize();
});
$(document).ready(function($){

	$('#focus').royalSlider({
		arrowsNav: true,
		loop: true,
		// loopRewind: true,
		keyboardNavEnabled: true,
		controlsInside: false,
		imageScaleMode: 'fill',
		arrowsNavAutoHide: false,
		autoScaleSlider: false,
		autoScaleSliderWidth: 1920,
		autoScaleSliderHeight: 1300,
		controlNavigation: 'bullets',
		thumbsFitInViewport: false,
		navigateByClick: false,
		startSlideId: 0,
		// randomizeSlides: true,//随机
		autoPlay: false,
		transitionType:'move',
		globalCaption: true,
		deeplinking: {
			enabled: true,
			change: false
		},
		imgWidth: 1920,
		imgHeight: 1300
	});
});